package conf

var Conf Config

type Config struct {
	*ConfLang
	*ConfApi
}

func init() {
	Conf = Config{
		ConfLang: &ConfLang{
			Port:    12121,
			OCRLang: "英文",
			//WordsLang: "en",
			TransLang: "中文",
			LangMap: map[string]Lang{
				"英文": {
					ImgLang:  "ENG",
					TextLang: "en",
				},
				"日文": {
					ImgLang:  "JAP",
					TextLang: "ja",
				},
				"韩文": {
					ImgLang:  "KOR",
					TextLang: "ko",
				},
				"中文": {
					ImgLang:  "CHN_ENG",
					TextLang: "zh",
				},
			},
		},
		ConfApi: &ConfApi{
			apiKey:      "",
			secretKey:   "",
			authUrl:     "https://aip.baidubce.com/oauth/2.0/token",
			accessToken: "",
			OCRUrl:      "",
			//TextTransUrl: "",
		},
	}
}
